home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World 2006 May
/
PCWMAY06.iso
/
Software
/
Freeware
/
First Page 2006 3.00
/
fp2006-final-3.00-setup.exe
/
{app}
/
Iscripts
/
Forms Misc
/
email-director.izs
< prev
next >
Wrap
Text File
|
2005-09-28
|
2KB
|
109 lines
<!NOWIZARD>
<!TITLE>E-mail Director
<!/TITLE>
<!DESCRIPTION>Use a button or link to send e-mail using the visitor's e-mail program.<!/DESCRIPTION>
<!CATEGORY>Forms<!/CATEGORY>
<!SCRIPT>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL E-MAIL DIRECTOR:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var mailsys="Netscape mail";
var author="Jon Eyrick";
if (author == "Jon Eyrick"){
phrompt=prompt;
snarkconf=confirm;
}
function mailsome1(){
who=phrompt("Enter a friend's email address: ","yourname@yoursite.com");
what=phrompt("Enter the subject: ","[no subject]");
if (snarkconf("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true){
parent.location.href='mailto:'+who+'?subject='+what+'';
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<a href='javascript:mailsome1()'>Click to E-Mail a Friend</a>
<br><br>
<form>
<input type=button value="Click to E-Mail a Friend" onClick="mailsome1()">
</form>
<!-- END OF SCRIPT -->
<!/SCRIPT>
<!PREVIEW>
<!-- START OF SCRIPT -->
<!-- HOW TO INSTALL E-MAIL DIRECTOR:
1. Copy code into the HEAD section of document
2. Put last coding into the BODY section of document -->
<!-- STEP ONE: Add code into HEAD section of document -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var mailsys="Netscape mail";
var author="Jon Eyrick";
if (author == "Jon Eyrick"){
phrompt=prompt;
snarkconf=confirm;
}
function mailsome1(){
who=phrompt("Enter a friend's email address: ","yourname@yoursite.com");
what=phrompt("Enter the subject: ","[no subject]");
if (snarkconf("Are you sure you want to mail "+who+" with the subject of "+what+"?")==true){
parent.location.href='mailto:'+who+'?subject='+what+'';
}
}
// End -->
</script>
</HEAD>
<!-- STEP TWO: Add code into BODY section of document -->
<BODY>
<a href='javascript:mailsome1()'>Click to E-Mail a Friend</a>
<br><br>
<form>
<input type=button value="Click to E-Mail a Friend" onClick="mailsome1()">
</form>
<!-- END OF SCRIPT -->
<!/PREVIEW>
<!RELATED>NONE<!/RELATED>